package HLLib.http;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLDateTime;
import HLLib.base.HLString;
import HLLib.json.HLJSONObject;

public class HLFuckHttpContext extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_HTTP, HLClassManager_H.LIB_CLASS_HTTP_FuckHttpContext);
    }

    public int GetInt(int index) {
        return serialNo;
    }

    public void SetInt(int index, int value) {
        serialNo = value;
    }

    public HLObject GetObject(int index) {
        switch (index) {
        case 0: {
            return url;
        }
        case 1: {
            return cmd;
        }
        case 2: {
            return callback;
        }
        case 3: {
            return code;
        }
        case 4: {
            return request;
        }
        case 5: {
            return response;
        }
        case 6: {
            return time;
        }
        case 7: {
            return data;
        }
        }
        return null;
    }

    public void SetObject(int index, HLObject value) {
        switch (index) {
        case 0: {
            url = (HLString) value;
            return;
        }
        case 1: {
            cmd = (HLString) value;
            return;
        }
        case 2: {
            callback = value;
            return;
        }
        case 3: {
            code = (HLString) value;
            return;
        }
        case 4: {
            request = (HLJSONObject) value;
            return;
        }
        case 5: {
            response = (HLJSONObject) value;
            return;
        }
        case 6: {
            time = (HLDateTime) value;
            return;
        }
        case 7: {
            data = value;
            return;
        }
        }
    }

    public int serialNo;

    public HLString url;

    public HLString cmd;

    public HLObject callback;

    public HLString code;

    public HLJSONObject request;

    public HLJSONObject response;

    public HLDateTime time;

    public HLObject data;

    public HLFuckHttpContext() {
        url = new HLString();
    }
}
